package com.tickaroo.tikxml.processor;

import android.support.annotation.NonNull;

import kotlin.jvm.internal.Intrinsics;

/**
 * Simple helper class
 *
 * @author Hannes Dorfmann
 */
//object XmlCharacters {
//
//    private val preservedXmlCharacters = Regex(".*(<|>|\"|')+.*") // TODO & char
//
//    fun containsXmlCharacter(toCheck: String) = toCheck.contains(preservedXmlCharacters)
//}

public final class XmlCharacters {
    private static final String preservedXmlCharacters = ".*(<|>|\"|')+.*";

    static boolean containsXmlCharacter(@NonNull String toCheck) {
        return toCheck.matches(preservedXmlCharacters);
    }
//    public final boolean containsXmlCharacter(@NonNull String toCheck) {
//        Intrinsics.checkParameterIsNotNull(toCheck, "toCheck");
//        CharSequence var2 = (CharSequence)toCheck;
//        Regex var3 = preservedXmlCharacters;
//        return var3.containsMatchIn(var2);
//    }

//    static {
//        XmlCharacters var0 = new XmlCharacters();
//        INSTANCE = var0;
//        preservedXmlCharacters = new Regex(".*(<|>|\"|')+.*");
//    }
}
